package cn.lhl.action;


import cn.lhl.entity.Stuck;
import cn.lhl.service.IStuckService;
import com.opensymphony.xwork2.Action;

/**
 * Created by Administrator on 2017/4/6/006.
 */
public class StuckAction implements Action{
    private IStuckService service;
    private Stuck stuck;
    public String execute() throws Exception {
        service.addStuck(stuck);
        return SUCCESS;
    }

    public IStuckService getService() {
        return service;
    }

    public void setService(IStuckService service) {
        this.service = service;
    }

    public Stuck getStuck() {
        return stuck;
    }

    public void setStuck(Stuck stuck) {
        this.stuck = stuck;
    }
}
